<?php
ini_set('display_errors',1);
ini_set('max_execution_time', 0);
$con = mysql_connect('localhost','root','qa1234');
$db = mysql_select_db('bestcheapjerseydeal',$con);
$sql ="select * from zcshop_products order by productid";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
	$row['content']= str_replace('gogoalshop','bestcheapjerseydeal',$row['content']);
	if(!get_magic_quotes_gpc()){
		$row['content'] = addslashes($row['content']);
	}
	$sql ="update zcshop_products set content='{$row['content']}' where productid={$row['productid']}";
	$res = mysql_query($sql);
	var_dump($res);
	echo $row['productid'];
	echo "<hr>";

}
?>